package _15_Constructors;

public class _1_ConstructorDemo {

	public static void main(String[] args) 
	{
		Person1 person1 = new Person1();
		Person1 person2 = new Person1("Ivan", 786954, false);
		//person1.printPersonParams();
	
		Car1 car = new Car1();
		Car1 car2 = new Car1();
		car.price = 150;
		car2.price = 200;
		System.out.println(car.isMoreExpensive(car2));
		//System.out.println(car.calculateCarPriceForScrap(50));
		
		System.out.println("Will this person buy the car: " + person1.buyCar(car));
		System.out.println("Money left after the car is sold for scrap: " + person1.sellCarForScrap());

	}

}
